#-*- coding:UTF-8 -*-
"""
Version: v1
Last Modified:
All rights reserved
"""

import urllib2
import threading

def deleteLoc(i):
    try:
        ret=urllib2.urlopen("http://pyutility.appspot.com/api/delloc/%d"%i)
        print ret.read()
    except Exception,e:
        print e

def deleteblock(i):
    try:
        ret=urllib2.urlopen("http://pyutility.appspot.com/api/delblock/%d"%i)
        print ret.read()
    except Exception,e:
        print e
    
if __name__=="__main__":
    """
    for i in range(10000):
        for j in range(100):
            threading.Thread(target=deleteLoc,args=(i*100+j,)).start()
    """
    for i in range(1000):
        deleteblock(i)
    
            
    